#ifndef NDT_SCAN_WINDOW_H
#define NDT_SCAN_WINDOW_H

/*!
 * Description: 显示单个(A、C、S等)扫查。
 */

#include <QMainWindow>
#include "view_core_def.h"

namespace eintik::presentation::viewcore {

class NdtScanScene;
class NdtScanView;

class NdtScanWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit NdtScanWindow(int type, int32_t group, QWidget *parent = nullptr);
    ~NdtScanWindow() Q_DECL_OVERRIDE;

    void updateScan();
    void createViewAndScene();
    void setColorMap(VIEW_TYPE type, const QVector<QColor> &colorVector);

    NdtScanScene *get_scene() { return scene; }

private:
    NdtScanScene *scene;
    NdtScanView *view;
    VIEW_TYPE Type;       // 当前扫查类型
};

}

#endif // NDT_SCAN_WINDOW_H
